-- GENERATED SPELL FOR [Rage Talon Captain] --


function spell0_10371(pUnit, Event) --@Arcing Smash,n/a--
pUnit:FullCastSpellOnTarget(16169,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10371', 615, 1)
end

function spell1_10371(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(10101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10371', 542, 1)
end

function spell2_10371(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(15708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10371', 5257, 1)
end

function Sorts_10371(pUnit, Event)
local choix_sorts_10371 = math.random(0, 2)
if choix_sorts_10371 == 0 then
pUnit:RegisterEvent('spell0_10371', 1, 1)
end
if choix_sorts_10371 == 1 then
pUnit:RegisterEvent('spell1_10371', 1, 1)
end
if choix_sorts_10371 == 2 then
pUnit:RegisterEvent('spell2_10371', 1, 1)
end
end

function mob10371_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10371', math.random(1500, 3000), 1)
end

function mob10371_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10371_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10371_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10371, 1, 'mob10371_Action')
RegisterUnitEvent(10371, 2, 'mob10371_Leave')
RegisterUnitEvent(10371, 3, 'mob10371_Kill')
RegisterUnitEvent(10371, 4, 'mob10371_Die')
